{include file="./include/header.tpl"}
<div id="ui_regform">
	<form id="regform" action="registeraction.php" method="post">
		<h2>{#register_site_title#}</h2>
		<p>{#register_site_header#}</p>
		<ul>
			<li>
				<input type="text" id="sitename" name="sitename" value="" size="30" /><font color="red">*</font>
				<span class="span_label"><label for="sitename">{#register_site_sitename#}</label></span>
				<span class="span_result"></span>
			</li>
			<li>
				<input type="text" id="siteurl" name="siteurl" value="" size="30" /><font color="red">*</font>
				<span class="span_label"><label for="siteurl">{#register_site_siteurl#}</label></span>
				<span class="span_result"></span>
			</li>
			<li>
				<input type="submit" name="btnsubmit" id="btnsubmit" value="{#register_site_submit#}" />
			</li>
		</ul>
		<input type="hidden" id="action" name="action" value="site" />
	</form>
</div>
{include file="./include/footer.tpl"}
{literal}
<script type="text/javascript">
$(document).ready(function(){
	$("#loginform").bind("submit", function(){
		var sitename = $("#sitename").val();
		var siteurl = $("#siteurl").val();
		
		if (siteurl == "" ||  siteurl == "") {
			alert("miss siteurl or siteurl");
			return false;
		}
		
		$this.post();
	});
});
</script>
{/literal}